#include <iostream>
#include <set>
using namespace std;

//pair<long double,long double> pr;
//set<pair<long double,long double> > st;

int main(){
	int a,b;
	int n;
	pair<long double,long double> pr;
	set<pair<long double,long double> > st;
	long double A[1000],B[1000];
	cin>>n;
	for(int i = 0;i < n;i++){
		cin>>a>>b;
		pr.first = a;
		pr.second = b;
		st.insert(pr);
	}
	int i = 0;
	int len = st.size();
	for(set<pair<long double,long double> >::iterator it = st.begin();it != st.end();it++,i++){
		A[i] = it->first;
		B[i] = it->second;
	}
	int ans = 2;
	for(int k = 1;k < len;k++){
		int k1 = A[i],b1 = B[i];
		set<pair<long double,long double> > pos;
		for(int j = i - 1;j >= 0;j--){
			int k2 = A[j],b2 = B[j];
			if(k1 == k2){
				continue;
			}
			
			pr.first = 1.0*(b2-b1)/(k1-k2);
			pr.second = 1.0*k1*1.0*(b2-b1)/(k1-k2)+b1;
			pos.insert(pr);	
		}
		ans += pos.size()+1;
	}
	cout<<ans<<endl;
	
	system("pause");
	return 0;
} 
